<template>
	<view>
		<view class="type-cells">
			<view class="type-cell">
				<view class="type-cell__hd">
					<view class="type-cell__title">+5床</view>
				</view>
				<view class="type-cell__bd">
					<view class="type-cell__group">
						<view class="type-cell__item">
							<view class="type-cell__info">
								<image src="../../static/images/inspect/icon1.png" mode="" class="type-info__icon">
								</image>
								<text class="type-info__label">姓名：</text>
								<text class="type-info__val">张翼德</text>
							</view>
							<view class="type-cell__info">
								<image src="../../static/images/inspect/icon2.png" mode="" class="type-info__icon">
								</image>
								<text class="type-info__label">住院号：</text>
								<text class="type-info__val">002</text>
							</view>
						</view>
						<view class="type-cell__item">
							<view class="type-cell__info">
								<image src="../../static/images/inspect/icon3.png" mode="" class="type-info__icon">
								</image>
								<text class="type-info__label">性别：</text>
								<text class="type-info__val">男</text>
							</view>
							<view class="type-cell__info">
								<image src="../../static/images/inspect/icon4.png" mode="" class="type-info__icon">
								</image>
								<text class="type-info__label">日期：</text>
								<text class="type-info__val">2021-10-20 14:20:30</text>
							</view>
						</view>
					</view>
				</view>
			</view>
			<view class="type-card">
				<view class="type-card__head">
					<view class="type-card__time">
						2021-06-10 15:41:37
					</view>
					<button type="default" class="back-btn">
						<image src="../../static/images/inspect/back.png" mode=""></image>
					</button>
				</view>
				<view class="type-card__body">
					<view class="type-card__box">
						<view class="type-card__title">气切导管</view>
						<view class="type-card__infos clearfix">
							<view class="item">
								巡检：正常
							</view>
						</view>
					</view>
					<view class="type-card__box">
						<view class="type-card__title">动脉导管</view>
						<view class="type-card__infos clearfix">
							<view class="item">
								巡检：正常
							</view>
						</view>
					</view>
				</view>
			</view>
			<view class="type-card">
				<view class="type-card__head">
					<view class="type-card__time">
						2021-06-16 15:41:37
					</view>
					<button type="default" class="back-btn">
						<image src="../../static/images/inspect/back.png" mode=""></image>
					</button>
				</view>
				<view class="type-card__body">
					<view class="type-card__box">
						<view class="type-card__title">气切导管</view>
						<view class="type-card__infos clearfix">
							<view class="item">
								巡检：正常
							</view>
						</view>
					</view>
					<view class="type-card__box">
						<view class="type-card__title">动脉导管</view>
						<view class="type-card__infos clearfix">
							<view class="item">
								巡检：正常
							</view>
						</view>
					</view>
				</view>
			</view>
			<view class="type-card">
				<view class="type-card__head">
					<view class="type-card__time">
						2021-06-16 15:41:37
					</view>
					<button type="default" class="back-btn">
						<image src="../../static/images/inspect/back.png" mode=""></image>
					</button>
				</view>
				<view class="type-card__body">
					<view class="type-card__box">
						<view class="type-card__title">气囊漂浮导管</view>
						<view class="type-card__infos clearfix">
							<view class="item">
								内置：15cm
							</view>
							<view class="item">
								外露：20cm
							</view>
							<view class="item item-flex">
								巡检：<text class="text-danger">异常</text>
							</view>
							<view class="item item-flex">
								图片：<image src="../../static/images/inspect/pic.png" mode="" class="type-card-pic">
								</image>
							</view>
							<view class="item">
								事件：穿刺口渗血更换敷料，敷料到期更换
							</view>
							<view class="item">
								备注：穿刺口渗血更换敷料，敷料到期更换
							</view>
						</view>
					</view>
					<view class="type-card__box">
						<view class="type-card__title">动脉导管</view>
						<view class="type-card__infos clearfix">
							<view class="item">
								巡检：正常
							</view>
						</view>
					</view>
				</view>
			</view>
				<u-loadmore :status="status" :icon-type="iconType" :load-text="loadText" font-size="26" color="#96979f" margin-top="50" margin-bottom="16"/>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				status: 'nomore',
				iconType: 'flower',
				loadText: {
					loadmore: '轻轻上拉',
					loading: '努力加载中',
					nomore: '没有更多了'
				}
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.type-cells {
		padding: 30rpx;

		.type-cell {
			position: relative;
			background-color: #fff;
			border-radius: 10rpx;
			overflow: hidden;

			.type-cell__hd {
				padding: 20rpx 26rpx;
				border-bottom: 1rpx dashed #d8dee6;
				position: relative;
			}

			.type-cell__hd::after {
				position: absolute;
				content: '';
				width: 22rpx;
				height: 22rpx;
				border-radius: 50%;
				background-color: #f5f7fa;
				right: -11rpx;
				bottom: -11rpx;
			}

			.type-cell__hd::before {
				position: absolute;
				content: '';
				width: 22rpx;
				height: 22rpx;
				border-radius: 50%;
				background-color: #f5f7fa;
				left: -11rpx;
				bottom: -11rpx;
			}

			.type-cell__title {
				font-size: 30rpx;
				color: #373b4f;
				line-height: 36rpx;
			}

			.type-cell__bd {
				padding: 20rpx 40rpx;
			}


			.type-cell__item {
				display: flex;
				align-items: center;
				justify-content: space-between;

				.type-cell__info {
					display: flex;
					align-items: center;
					line-height: 56rpx;
				}
			}

			.type-info__icon {
				width: 26rpx;
				height: 26rpx;
				margin-right: 18rpx;
			}

			.type-info__label {
				font-size: 26rpx;
				color: #a09fa8;
			}

			.type-info__val {
				font-size: 26rpx;
				color: #373b4f;
			}
		}
	}

	.type-card__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 26rpx 0;

		.type-card__time {
			font-size: 26rpx;
			color: #96979f;
			line-height: 40rpx;
		}

		.back-btn {
			width: 36rpx;
			height: 36rpx;
			padding: 0;
			font-size: 0;
			margin: 0;
		}

		.back-btn::after {
			display: none;
		}

		.back-btn image {
			width: 36rpx;
			height: 36rpx;
		}
	}

	.type-card__box {
		background-color: #fff;
		border-radius: 12rpx;
		padding: 20rpx 30rpx;
		overflow: hidden;
		margin-bottom: 20rpx;

		.type-card__title {
			font-size: 30rpx;
			color: #373b4f;
			line-height: 36rpx;
			margin-bottom: 16rpx;
		}

		.type-card__infos {
			font-size: 26rpx;
			color: #96979f;
			line-height: 50rpx;
			white-space: nowrap;

			.item {
				float: left;
				min-width: 216rpx;
			}
		}
	}

	.type-card__box:last-child {
		margin-bottom: 0;
	}

	.item-flex {
		display: flex;
	}

	.text-danger {
		color: #f84949;
	}

	.type-card-pic {
		width: 368rpx;
		height: 232rpx;
		margin: 10rpx 0;
	}
</style>
